<?php

namespace app\common\model\xiluhouse;

use think\Model;

class OrderDivide extends Base
{

    // 表名
    protected $name = 'xiluhouse_order_divide';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    public function rentalOrder(){
        return $this->belongsTo("RentalOrder",'order_id','id',[],'INNER')->setEagerlyType(0);
    }

}
